﻿using System.Reflection;

namespace PageAdmin.Utils.ORM.PropertyDescriptor
{
    /// <summary>
    /// 附件映射描述器
    /// </summary>
    public class AttachmentMappedDescriptor
    {


        /// <summary>
        /// 附件字段名称
        /// </summary>
        public string AttachmentFieldName { get; set; }

        /// <summary>
        /// 列表附件数据的属性名称
        /// </summary>
        public string FileListPropertyName { get; set; }

        /// <summary>
        /// 列表附件数据的属性元数据
        /// </summary>
        public PropertyInfo FileListPropertyInfo { get; set; }

        /// <summary>
        /// 附件表需要读取的字段
        /// </summary>
        public string AttachmentFileListField { get; set; }


        /// <summary>
        /// 详情数据是否同步加载
        /// </summary>
        public bool DetailSyncLoad { get; set; }

        /// <summary>
        /// 列表数据是否同步加载
        /// </summary>
        public bool ListSyncLoad { get; set; }

    }
}